/* ******************************************************************
 * This file is part of the escal project and distributed under the
 * terms of the GNU General Public License Version 3
 * Copyright (C) 2008 Epocher (xijiaosdq@gmail.com)
 * See COPYING file for licensing information.
 *******************************************************************/

#ifndef TASK_INFO_WIDGET_H
#define TASK_INFO_WIDGET_H
#include <QTabWidget>

class QTabWidget;
class QTextCursor;
class QTextDocument;
class QTextEdit;
class BaseTask;

class TaskInfoWidget:public QTabWidget{
	Q_OBJECT
public:
	TaskInfoWidget(QWidget *parent=0);
	void watch(BaseTask *task);
public slots:
	void taskDataChanged(BaseTask *task, int column);
	void taskDeleted(BaseTask *task);
private:
	QList <QTextEdit *> textEditList;
	BaseTask *watchTask;
};

#endif /* TASK_INFO_WIDGET_H */
